﻿<Window xmlns:local="clr-namespace:Asko.Lib.Views;assembly=Asko.Lib"  x:Class="Asko.App.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
        xmlns:ei="clr-namespace:Microsoft.Expression.Interactivity.Layout;assembly=Microsoft.Expression.Interactions" 
        xmlns:wc="clr-namespace:WPFExtensions.Controls;assembly=WPFExtensions"
        Title="MainWindow" Height="600" Width="1200"
        DataContext="{Binding Main, Source={StaticResource Locator}}">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="40"/>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <ToolBar>
            <Button Command="{Binding Path=CreateNodeCommand}" Content="Add Node"/>
            <Button Command="{Binding Path=RemoveNodeCommand}" Content="Remove Node"/>
            <Button x:Name="bAddConnection" Command="{Binding Path=CreateConnectionCommand}" Content="Add a connection" Click="bAddConnection_Click" />
            <Button x:Name="Layout" Content="Layout" Click="Layout_Click" />
        </ToolBar>
        <local:GraphView x:Name="gvGraph" Grid.Row="1" DataContext="{Binding GraphVM}" />


    </Grid>
</Window>
